Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


USL Error Codes

Error codes returned by the USL are in the range -6900 to -6999 as listed in Table 2.

Table 2  Error definitions

Error constant

Number

Definition

kUSBNoErr 0 No error occurred
kUSBInternalErr -6999 Internal error
kUSBUnknownDeviceErr -6998 Device reference not recognized
kUSBUnknownPipeErr -6997 Pipe reference not recognized
kUSBTooManyPipesErr -6996 Too many pipes
kUSBIncorrectTypeErr -6995 Incorrect type specified
kUSBRqErr -6994 Request error
kUSBUnknownRequestErr -6993 Unknown request
kUSBTooManyTransactionsErr -6992 Too many transactions
kUSBAlreadyOpenErr -6991 Device already open
kUSBNoDeviceErr -6990 No device
kUSBDeviceErr -6989 Device error
kUSBOutOfMemoryErr -6988 Out of memory
kUSBNotFound -6987 USB not found
kUSBPBVersionError -6986 Wrong parameter block version
kUSBPBLengthError -6985 pbLength too small
kUSBCompletionError -6984 No completion routine specified
kUSBFlagsError -6983 Flags not initialized to 0
kUSBAbortedError -6982 Pipe aborted
kUSBNoBandwidthError -6981 Not enough bandwidth available
kUSBPipeIdleError -6980 Pipe is idle; it cannot accept transactions
kUSBPipeStalledError -6979 Pipe has stalled; it cannot be used until the error is cleared with a USBClearPipeStallByReference call
kUSBUnknownInterfaceErr -6978 Interface reference not recognized
kUSBDeviceBusy -6977 Device is already being configured
kUSBDevicePowerProblem -6976 Device has a power problem
kUSBLinkErr -6916 Link error
kUSBCRCErr -6915 Pipe stall: bad CRC
kUSBBitstufErr -6914 Pipe stall: bitstuffing
kUSBDataToggleErr -6913 Pipe stall: bad data toggle
kUSBEndpointStallErr -6912 Device didn't understand
kUSBNotRespondingErr -6911 Pipe stall, no device, or device hung
kUSBPIDCheckErr -6910 Pipe stall: PID CRC error
kUSBWrongPIDErr -6909 Pipe stall: Bad or wrong PID
kUSBOverRunErr -6908 Packet too large or more data than buffer
kUSBUnderRunErr -6907 Less data than buffer
kUSBBufOvrRunErr -6904 Host hardware failure on data in
kUSBBufUnderRunErr -6903 Host hardware failure on data out
kUSBNotSent1Err -6902 Transaction not sent
kUSBNotSent2Err -6901 Transaction not sent


© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames